home *** CD-ROM | disk | FTP | other *** search
/ Merciful 2 / Merciful - Disc 2.iso / software / 0 / 100printerdrivers.dms / 100printerdrivers.adf / printers / Gemimi / Printer.Test < prev    next >
Text File  |  1991-05-08  |  11KB  |  303 lines

  1. #1
  2.  
  3.  Gemini_10X Printer Test
  4.      and Code Sample    
  5.  
  6.  
  7. If you set your printer preferences up according to the instructions in the
  8. Readme.G10X file this should be printed as a narrow column with a Left Margin
  9. set at 15 and a Right Margin set at 40.  This text is also printed in double
  10. strike mode which is used to simulate NLQ mode when Preferences is set for
  11. LETTER mode instead of DRAFT. As requested by Preferences the printer is set 
  12. for ELITE pitch and 8 lines/inch spacing.  By issuing a FormFeed (ASCII
  13. character code 12, CNTL-L )  in the middle of this sentence we can see that the printer has been set with a
  14. formlength of 35 lines (of which it just skipped over 9 of them).
  15.  
  16.  
  17. The Preferences settings are considered the default settings by the printer.
  18. The first time a printer driver is loaded it obtains the default configuration
  19. values from Preferences. Any time you wish to reset your printer to the
  20. default values simply issue the Initialize command (aRIN) code ESC#1 .
  21.  
  22.  
  23. Time for some changes (and a new page).
  24. Formfeed (ASCII character code 12) Vertical Tab (ASCII character code 11) Vertical Tab (ASCII character code 11)
  25. Last line of the page.c
  26.  
  27.  
  28. The code ESCc is the Printer Reset (aRIS) command.  This resets the printer to
  29. normal power up conditions.  These conditions include:
  30.  
  31.         Left margin (column)      1
  32.         Right margin (column)   136
  33.         Page length (lines)      66
  34.         Pitch                  Pica
  35.         Spacing (lines/inch)      6
  36.         Print quality         Draft
  37.  
  38.  
  39.  
  40. The ESCD code is the Linefeed (aIND) command.  DThis will cause the line to split.
  41.  
  42.  
  43. The Return Linefeed (aNEL) command hasEthe code ESCE
  44.  
  45.  
  46.  
  47.  
  48. The code ESC[3m is the Italic On (aSGR3) command.  The Italics Off (aSGR23) command has a code ESC[23m
  49.  
  50.  
  51. The code ESC[4m is the Underline On (aSGR4) command.  The Underline Off (aSGR24) command has a code ESC[24m
  52.  
  53.  
  54. The code ESC[1m is the Boldface On (aSGR1) command.  The Boldface Off (aSGR22) command has a code ESC[22m
  55.  
  56.  
  57. The code ESC[4"z is the "zDoublestrike On (aDEN4) command.  The Doublestrike Off (aDEN3) "zcommand has a code ESC[3"z
  58.  
  59.  
  60. The print modes Italics, Underline, Boldface and "zDoublestrike can all be turned off with the code ESC[0m which is the Normal Character Set (aSGR0) command.
  61.  
  62.  
  63.  
  64.  
  65. The code ESC[2w is the wElite On (aSHORP2) command.  The Elite Off (aSHORP1) wcommand has a code ESC[1w (the Elite Off command can be used as the Pica On command).
  66.  
  67.  
  68. The code ESC[4w is the wCondensed (Fine) On (aSHORP4) command.  The Condensed Off (aSHORP3) wcommand has a code ESC[3w (the Condensed Off command can be used as the Pica On command).
  69.  
  70.  
  71. The code ESC[6w is the wEnlarged On (aSHORP6) command.  The Enlarged Off (aSHORP5) wcommand has a code ESC[5w
  72.  
  73.  
  74. The print modes wElite and/or wCompressed and wEnlarged can all be turned off with the codew ESC[0w which is the Normal Pitch (aSHORP0) command.
  75.  
  76.  
  77. FormFeed (ASCII char code 12)
  78.  
  79.  
  80. The code ESC[2v is the vSuperscript  On (aSUS2) command.  The Superscript Off (aSUS1) vcommand has a code ESC[1v
  81.  
  82.  
  83. The code ESC[4v is the vSubscript  On (aSUS4) command.  The Subscript Off (aSUS3) vcommand has a code ESC[3v
  84.  
  85.  
  86. The code ESCL is the LPartial Line Up (aPLU) command.  The Partial Line Down (aPLD) Kcommand which has the code ESCK returns PLU to normal.
  87.  
  88.  
  89. The code ESCK is the KPartial Line Down (aPLD) command.  The Partial Line Up (aPLU) Lcommand which has the code ESCL returns PLD to normal.
  90.  
  91.  
  92. The print modes vSuperscriptv or vSubscript v or LPartial Line Up K or KPartial Line Down L can all be turned off with the code ESC[0v which is the Normalize (aSUS0) command.
  93.  
  94.  
  95.  
  96.  
  97.  
  98. There are 8 International character sets available on the Gemini_10X printer.
  99. The default set is the USA character set.
  100.  
  101.  
  102. The code ESC(B turns on the USA (aFNT0) char set which prints      (B #@[\]^`{|}~
  103.  
  104.  
  105. The code ESC(R turns on the French (aFNT1) char set which prints   (R #@[\]^`{|}~
  106.  
  107.  
  108. The code ESC(K turns on the German (aFNT2) char set which prints   (K #@[\]^`{|}~
  109.  
  110.  
  111. The code ESC(A turns on the UK (aFNT3) char set which prints       (A #@[\]^`{|}~
  112.  
  113.  
  114. The code ESC(E turns on the Danish I (aFNT4) char set which prints (E #@[\]^`{|}~
  115.  
  116.  
  117. The code ESC(H turns on the Sweden (aFNT5) char set which prints   (H #@[\]^`{|}~
  118.  
  119.  
  120. The code ESC(Y turns on the Italian (aFNT6) char set which prints  (Y #@[\]^`{|}~
  121.  
  122.  
  123. The code ESC(Z turns on the Spanish (aFNT7) char set which prints  (Z #@[\]^`{|}~
  124.  
  125.  
  126. "xTo get back to the normal character issue the USA set ESC(B code.  Due to a 
  127. bug in the Amiga Printer routines the ESC(B code is not recognized as a special
  128. code.  To get around this bug the Gemini_10X printer driver has implemented one
  129. of the unused Extended Commands, command 0 (aEXTEND0), to replace the aFNT0
  130. command.  The code for aEXTEND0 is ESC[0"x 
  131.  
  132.  
  133. FormFeed (ASCII char code 12)
  134.  
  135.  
  136.  
  137. zThe code ESC[0z is the 1/8" Line Spacing (aVERP0) command.
  138. The 1/8" line spacing is changed by issuing the code ESC[1z 
  139. which is the 1/6" Line Spacing (aVERP1) command.z
  140.  
  141.  
  142. The code ESC[nt is the Form Length (aSLPP) command.  The "n" is replaced by the
  143. length of the form(page) in lines.  For example the command code ESC[12t would
  144. set the form length at 12 lines.
  145.  
  146.  
  147. The code ESC[nq is the Skip Perferation On (aPERF) command.  The "n" is 
  148. replaced by the number of lines before the perferation to skip.  For example
  149. the command code ESC[6q would cause the printer to do a formfeed to the top of
  150. the next page when only 6 lines are left on a form.
  151.  
  152.  
  153. The code ESC[0q is the Skip Perferation Off (aPERF0) command.
  154.  
  155.  
  156.  
  157. Example
  158. tESC[6t sets the form length at 6 lines.
  159. qESC[3q sets the skip over perferation at 3 lines.
  160. Line 3
  161. Line 4 or Line 1 of new page after skipping 3 lines.
  162. Line 5
  163. Line 6
  164. Line 7 or Line 1 of new page after skipping 3 lines.
  165. qESC[0q turns skip perferation off.
  166. Line 9
  167. Line 10 -- no line skipping time.
  168. Line 11
  169. Line 12
  170. Line 13 or Line 1 of new page 
  171. Line 14
  172.  
  173.  
  174. FormFeed (ASCII char code 12) FormFeed (ASCII char code 12) FormFeed (ASCII char code 12)
  175.  
  176.  
  177.  
  178.  
  179. ESCc to reset printer.
  180. c
  181.  
  182. The code ESC#9 is the Left Margin Set (aLMS) command.  The ASCII value of the
  183. character that immediately follows the command code is used as the left margin.
  184. For example ESC#9! sets the left margin at column 33 because the ASCII value of
  185. the character ! is 33.
  186.  
  187.  
  188. The code ESC#0 is the Right Margin Set (aRMS) command.  The ASCII value of the
  189. character that immediately follows the command code is used as the right
  190. margin.  For example ESC#0K sets the right margin at column 75 because the
  191. ASCII value of the character K is 75.
  192.  
  193.  
  194. The code ESC#8 is the Top Margin Set (aTMS) command.  The ASCII value of the
  195. character that immediately follows the command code is used as the top line for
  196. printing.  For example ESC#8! sets the top line at line 33 because the ASCII
  197. value of the character ! is 33.  A top line of 33 mean a 32 line top margin.
  198.  
  199.  
  200. The code ESC#2 is the Bottom Margin Set (aBMS) command.  The ASCII value of the
  201. character that immediately follows the command code is used as the bottom 
  202. margin.  For example ESC#8# sets the bottom margin at line 35 because the
  203. ASCII value of the character # is 35.
  204.  
  205.  
  206. The code ESC[n1;n2r is the Top & Bottom Margin Set (aSTBM) command.  The "n1" 
  207. is replaced by the line number to be used as the top line of a new page.  The
  208. "n2" is replaced by the number of lines to be used as a bottom margin.  For
  209. example the command code ESC[6;6r will cause the printer to be set up to start
  210. a new page on line 6 (top margin) and do a formfeed to the top of the next page
  211. when only 6 lines are left on a bottom of the form ( bottom margin).
  212.  
  213.  
  214. The code ESC[n1;n2s is the Left & Right Margin Set (aSLRM) command.  The "n1" 
  215. is replaced by the value to be used as a left margin.  The "n2" is replaced by
  216. the value to be used as a right margin.  For example the code ESC[10;70s will
  217. set the left margin at 10 and the right margin at 70.
  218.  
  219.  
  220. The code ESC#3 is the Clear All Margins (aCAM) command.  This command will
  221. clear the left, right, top and bottoms margins.
  222.  
  223.  
  224. FormFeed (ASCII char code 12)
  225.  
  226. Example
  227.  
  228. tESC[12t set the form length at 12 lines.
  229. #8ESC#8n where n has ASCII value of 3 set the top line at line 3 (top margin).
  230. #2ESC#2n where n has ASCII value of 3 set the bottom margin at 3 lines.
  231. Line 4
  232. Line 5
  233. Line 6
  234. Line 7
  235. Line 8
  236. Line 9 -- Last line printed on page.  Skip 3 line bottom margin.
  237. Line 10 -- Skip to line 3 of new page.  Total 5 blank lines between.
  238.  
  239. #9#ESC#9# sets the left margin at column 35 because the character # has an ASCII value of 35.
  240.  
  241. #0KESC#0K sets the right margin at column 75 because the character K has an ASCII value of 75.
  242.  
  243. 65sESC[15;65s set the right margin at column 15 and the right margin at column 65.
  244.  
  245. rESC[2;1r sets the top line at line 2 (top margin of 1 line) and a bottom
  246. margin of 1 line.
  247.  
  248. #3ESC#3 clears all the margins.
  249.  
  250.  
  251. FormFeed (ASCII char code 12) FormFeed (ASCII char code 12)
  252. ESCc to reset printer.
  253. c
  254.  
  255. The code ESCH is the Set Horizontal Tab (aHTS) command.  The ASCII values of 
  256. the characters that immediately follow the command code are used as the 
  257. horizontal tab positions.  All characters upto the first NULL (ASCII 0) 
  258. character are used as tab markers.  For example ESCH!/9AKNULL sets the tabs at
  259. columns 33, 47, 57, 65 and 75.  These positions correspond to the ASCII values
  260. of the character string as shown:
  261.                      
  262.                     CHAR         ASCII
  263.  
  264.                       !            33
  265.                       /            47
  266.                       9            57
  267.                       A            65
  268.                       K            75
  269.                      NULL          0
  270.  
  271.  
  272. The code ESCJ is the Set Vertical Tab (aVTS) command.  The ASCII values of the
  273. characters that immediately follow the command code are used as the vertical
  274. tab positions.  All characters upto the first NULL (ASCII 0) character are
  275. used as tab markers.  For example ESCJ#-27<NULL sets the vertical tabs at lines
  276. 35, 45, 50, 55 and 60.  These positions correspond to the ASCII values of the 
  277. character string as shown:
  278.                      
  279.                     CHAR         ASCII
  280.  
  281.                       #            35
  282.                       -            45
  283.                       2            50
  284.                       7            55
  285.                       <            60
  286.                      NULL          0
  287.  
  288.  
  289. The code ESC[3g is the Clear All Horizontal Tabs (aTBC3) command.
  290.  
  291.  
  292. The code ESC[4g is the Clear All Vertical Tabs (aTBC4) command.
  293.  
  294.  
  295. The code ESC#4 is the Clear All Horizontal & Vertical Tabs (aTBCALL) command.
  296.  
  297.  
  298. The code ESC#5 is the Set Default Tabs (aTBSALL) command.  The horizontal tabs
  299. are set at columns 10, 20, 30, 40, 50, 60, 70 and 80.  The vertical tabs are 
  300. set at line 6, 12, 18, 24, 30, 36, 42, 48, 54 and 60.
  301.  
  302.  
  303. END